package com.zhichubao.enterprise.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangzhiwei
 * @since 2021-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("role")
@ApiModel(value="Role对象", description="")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "租户id")
    private Long tenantId;

    @ApiModelProperty(value = "角色编号")
    private String roleNo;

    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ApiModelProperty(value = "批准流显示")
    private String showName;

    @ApiModelProperty(value = "角色分类")
    private String roleType;

    @ApiModelProperty(value = "角色描述")
    private String description;

    @ApiModelProperty(value = "是否必要")
    private Boolean required;

    @ApiModelProperty(value = "系统预置角色")
    private Boolean preset;

    @ApiModelProperty(value = "批准原因-预留")
    private String approveReason;

    @ApiModelProperty(value = "是否启用: 0: 未启用，1:启用")
    private Boolean isActive;

    @ApiModelProperty(value = "是否删除 0:未删除, 1:已经删除")
    private Boolean isDelete;

    @ApiModelProperty(value = "更新人")
    private String updator;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;


}
